import request from '@/utils/request';
import { AxiosPromise } from 'axios';

/**
 * 修改
 *
 * @param data
 */
export function updateProduct(data: any) {
  return request({
    url: '/api/app/product/productupdate',
    method: 'post',
    data
  });
}

/**
 * 添加
 *
 * @param data
 */
export function addProduct(data: any) {
  return request({
    url: '/api/app/product/productadd',
    method: 'post',
    data
  });
}


/**
 * 获取List
 *
 * @param data
 */
export function getProductList(data: any) {
  return request({
    url: '/api/app/product/productlist',
    method: 'post',
    data
  });
}

/**
 * 删除List
 *
 * @param data
 */
export function deleteProduct(data: any) {
  return request({
    url: '/api/app/product/productbatchdelete',
    method: 'post',
    data
  });
}

/**
 * 查询app详情
 *
 * @param data
 */
export function getProductDetail(data: any) {
  return request({
    url: '/api/app/product/productbyid',
    method: 'post',
    data
  });
}



